<?php
class DefaultIndexAction extends FrontendAction
{
	public function __construct()
	{
		parent::__construct();
		$this->layout = 'index';
	}
	
	public function execute()
	{
		//取友情链接
		$linkService = new BaseDbService('link');
		$this->data['links'] = $linkService->rows(array('index_show'=>1), 'orderby DESC,id ASC');
		
		//seo
		$seo = Util::loadSetting('seo');
		$this->data['seo']['title']  = $seo['indextitle'];
		$this->data['seo']['keyword']  = $seo['indexkeyword'];
		$this->data['seo']['description']  = $seo['indexdescription'];
	}
}
